package test.pattern;


public class RegexSample {
	public static void main(String ar[]) throws java.io.IOException{
		final String regex = "\\p{Alnum}+@\\p{Alnum}+\\.\\p{Alnum}+";
		String[] useStr = {"pupustory@gmail.com"
							,"pupu@gmail.net"
							,"pupu한글@gmail.net.net"
							,"@.net"
		};
		for (int i=0; i<useStr.length; i++) {
			System.out.println(useStr[i].matches(regex));
		}
	}
}